# -*- coding: utf-8 -*-
"""
Created on Thu Feb 21 11:48:36 2013

@author: daniel
"""

#import primes
#print primes.primes(10000)
import timeit  

lon1, lat1, lon2, lat2 = -72.345, 34.323, -61.823, 54.826
num = 500000

t = timeit.Timer("cyTest.great_circle_pymath(%f,%f,%f,%f)" % (lon1,lat1,lon2,lat2), 
                       "import cyTest")
print "Cython", t.timeit(num), "sec"

t = timeit.Timer("cyTest.great_circle_cmath(%f,%f,%f,%f)" % (lon1,lat1,lon2,lat2), 
                       "import cyTest")
print "Cython + C math", t.timeit(num), "sec"
t = timeit.Timer("cyTest.great_circle_npmath(%f,%f,%f,%f)" % (lon1,lat1,lon2,lat2), 
                       "import cyTest")
print "Cython + NP math", t.timeit(num), "sec"